#include "Critical.h"

Critical::Critical()
{
	::InitializeCriticalSection(&cc);
}

Critical::~Critical()
{
	::DeleteCriticalSection(&cc);
}

void Critical::Enter()
{
	::EnterCriticalSection(&cc);
}

void Critical::Leave()
{
	::LeaveCriticalSection(&cc);
}

int Critical::GetLockCount()
{
	return cc.LockCount;
}